package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.checkerframework.common.aliasing.qual.Unique;
import org.hibernate.validator.constraints.UniqueElements;

/**
 * 报价-项目(Item)表实体类
 *
 * @author yxy
 * @since 2024-10-24 14:46:59
 */
@Data
@ApiModel("报价-项目")
@TableName(value = "tb_item")
public class  Item extends Model<Item> implements Serializable {
    private static final long serialVersionUID = -95118541928250394L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("项目id")
    private Long id;

    @ApiModelProperty("项目名称")
    private String itemName;

    @ApiModelProperty("用户")
    private Long userId;

    @ApiModelProperty("项目编号")
    private String itemNo;
    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("商家ID")
    private Long merchantId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;
}
